package com.example.Lezedata.net;
import common.Errorcode;

public class GBError {
    String code;
    String desc;
    Integer code_int;

    public static GBError newInstance(String code,String desc) {
        GBError fragment = new GBError();
        fragment.code = code;
        fragment.desc = desc;
        fragment.code_int = Integer.parseInt(code);
        return fragment;
    }

    boolean isEqTipCode(Errorcode.TipCode code){
        return this.code_int.intValue() == code.getNumber();
    }
}
